﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using DZPK.SocketImpl;

namespace DZPK
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            //ByteArray arr = new ByteArray();

            //for (int i = 0; i < 20; i++)
            //{
            //    arr.writeByte(i + 1);
            //}

            //byte[] add = new byte[20];

            //for (int i = 0; i < 10; i++)
            //{
            //    add[i] = (byte)(i + 20 + 1);
            //}

            //arr.appendBytes(add, 6);

            //ByteArray arr = new ByteArray();

            //for (int i = 0; i < 20; i++)
            //{
            //    arr.writeByte(i + 1);
            //}

            //arr.TruncateFromHead(10);

            //ByteArray arr = new ByteArray();

            //arr.writeUnsignedInt(4294967290);

            //arr.position = 0;
            //uint read = arr.readUnsignedInt();

            //string str = "IC";
            //arr.writeMultiByte(str, "gb2312");

            //string read = arr.readMultiByte(2, "gb2312");

            //TestEncryptAndDecrypt.DecryptCase_1();

            DateTime dt = DateTime.Now;
            long timeStamp = (dt.ToUniversalTime().Ticks - 621355968000000000) / 1000000000;

            UnitTest.ByteArrayToCharArray_Test();

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new Form1());
        }
    }
}
